<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no" />
    <title>仓库选择</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <style>
        /*//头部*/
        body{
            font-size: 14px;
        }
        header{
            width: 100%;
            line-height: 45px;
            height:80px;
            background: #fff;
            position: relative;
        }
        .aui-icon-left{
            padding-left:10px;
        }
        .win_title{
            width: auto;
            text-align: center;
            position: absolute;
            right: 80px;
            left: 80px;
        }
        .notice{
            background: #ffe6dd;
            color: #ff6969;
            font-size: 12px;
            width: 100%;
            overflow: hidden;
            line-height: 30px;
        }
    </style>
</head>
<body>
<header class=" ">
    <div class="aui-pull-left aui-iconfont aui-icon-left icon-left-coler" tapmode onclick="closeWin()"></div>
    <div class="win_title aui-ellipsis-1">
        仓库选择
    </div>
    <div class="notice">目前只开放以下省区仓，其他地区仓正在快马加鞭建设中...</div>
</header>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/jquery-1.11.3.js"></script>
<script type="text/javascript">
    apiready = function() {
        api.parseTapmode();
        var mobile = api.pageParam.mobile;
        var header = $api.dom('header');
        var searchContent= api.pageParam.content;
        if(searchContent){
            alert(searchContent)
        }
        //$api.fixStatusBar(header);
        api.setStatusBarStyle({
            style : 'light'
        });
        var header_h = $api.offset(header).h;
        var body_h = $api.offset($api.dom('body')).h - header_h;
        api.openFrame({
            name : 'wareHouse_frm',
            url : 'wareHouse_frm.html',
            rect : {
                x : 0,
                y : header_h,
                w : 'auto',
                h : body_h
            },
            pageParam : {
                mobile : mobile
            },
            bounces : true,
            vScrollBarEnabled : false,
            hScrollBarEnabled : false
        });
    }

    function switchChange(obj) {
        $('.aui-tab-nav li').removeClass('active');
        $(obj).addClass('active');
        var type = $(obj).attr('data-type');
        api.sendEvent({
            name: 'lizi_type',
            extra: {
                lizi_type: type
            }
        })
    }
    function changeView(obj) {
        var viewType = $(obj).attr("view-type");

        api.execScript({
            frameName: 'proList_frm',
            script: 'changeView("'+viewType+'")'
        });

        if (viewType == "bigPic") {
            //一行两列
            $(".aui-icon-cascades").addClass("iConent");
            $(obj).attr("view-type", "smallPic");
        } else if (viewType == "smallPic") {
            //一行一列
            $(".aui-icon-cascades").removeClass("iConent");
            $(obj).attr("view-type", "bigPic");
        }
    }
</script>
</html>
